package cn.atzxc.qy.service;

import cn.atzxc.qy.domain.vo.StudentCategoryHelpVo;

import java.util.List;

public interface StudentCategoryHelpVoService {

    /**
     * 获取到万能广场的所有数据
     *
     * 包括 失物招领 和 我要转卖
     * @return
     */
    public List<StudentCategoryHelpVo> getStudentCategoryHelpVoList();

    /**
     * 根据ID查看指定的详情
     *
     * @param id
     * @return
     */
    StudentCategoryHelpVo selectOneStudentHelpVoById(Long id);

    /**
     * 用户端发布一条我要转卖
     *
     * @param studenthelp
     * @return
     */
    int addStudentHelp(String token,Boolean isPublish,StudentCategoryHelpVo studenthelp) throws Exception;

    List<StudentCategoryHelpVo> getMyStudentCategoryHelpVoList(String token) throws Exception;

    int deleteStudentHelpVo(String token, String shelp_id) throws Exception;

    Long getUserIdBySHelpId(Long id);
}
